var app = getApp()
Component({
    properties: {
        bg: {
            type: String, // blue, purple, orange
            value: 'orange'
        },
        gender: {
            type: String, // female, male
            value: 'female'
        },
        name: String,
        time: String,
        lasttime: String,
        avator: String,
        editable: Boolean, // 是否可以编辑
        care: {
            type: Boolean,
            value: true
        },
        childId: String,
        avator: String,
        gender: String, // male, female
        nickname: String,
        height: String,
        weight: String,
        relation: String,
        guardianCount: Number,
        fansCount: Number,
        location: String
    },
    methods: {
        deleteFans() {
            this.triggerEvent('delete')
        },
        editBabyDetail(){
            this.triggerEvent("edit")
        },
        tapGuardian(){
            this.triggerEvent('guardian')
        },
        toFans(){
            wx.navigateTo({
                url: app.xhx_route.babyFans+"?childId="+this.data.childId
            })
        }
    }
})